<template>
  <div/>
</template>

<script>
import { downloadFile } from '@/utils';
export default {
  created() {
    const fileUrl = this.$route.query.fileUrl || '';
    const fileName = this.$route.query.fileName || '';
    if (fileUrl && fileName) {
      downloadFile(fileUrl, fileName);
    }
  },
  methods: {
    download(url, name) {
      downloadFile(url, name);
    }
  }
};
</script>

<style>

</style>
